package com.dayuanit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dayuanit.domain.User;

@Repository
public interface UserDao {

	int addUser(User user);

	User getUser(@Param("userName")String userName);

	List<User> listUser(@Param("userName")String userName);
	
	User getUserByCode(@Param("code")String code);

	boolean modifyState(User user);

	boolean modifyPassword(User user);

}
